package com.jf.yytgd.entity.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Created with IntelliJ IDEA
 * Description: 日记Bean
 * User:22954
 * Date:2025-01-12
 * Time:20:17
 */
@Data
public class Diary {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    private Integer userId;
    @TableField(exist = false)
    private DiaryBlob diaryBlob;
    private LocalDateTime publishedAt;
    private Integer likes;
    private Integer views;
    private Integer comments;
}
